$(function() {
	$(".notice .content").each(function() {
		var id = $(this).attr("id").split("_")[1];
		$.ajax({
			url: "list_ajax.php?page=9&id=15",
			type: "get",
			success: gethtml
		});
		function gethtml(xml) {
			if(xml.split("|||")[0] == "success") {
				$("#nt_content").html(xml.split("|||")[2]);
			}
		}
	});
	
	$(".list .content:not(:last)").each(function() {
		var id = $(this).attr("id").split("_")[1];
		$.ajax({
			url: "list_ajax.php?page=7&list=1&id=" + id,
			type: "get",
			success: gethtml
		});
		function gethtml(xml) {
			if(xml.split("|||")[0] == "success") {
				$("#content_" + xml.split("|||")[1]).html(xml.split("|||")[2]);
			}
		}
	});
});

function menuShow(Obj,Id) {
	$("#list_" + Id).find(".active").removeClass("active");
	$(Obj).addClass("active");
	var rel = $(Obj).attr("rel");
	$.ajax({
		url: "list_ajax.php?page=7&id=" + rel + "&type=" + Id,
		type: "get",
		success: gethtml
	});
	function gethtml(xml) {
		if(xml.split("|||")[0] == "success") {
			$("#content_" + xml.split("|||")[1]).html(xml.split("|||")[2]);
		}
	}
}

function toLink(Obj) {
	if($(Obj).attr("value") != "") {
		window.open($(Obj).attr("value"));
	}
}